<template>
  <div>
    <div class="breadcrumb-nav-wrapper px1000 pt20">
      <el-breadcrumb separator-class="el-icon-arrow-right">
        <el-breadcrumb-item :to="{ path: '/' }">
          首页
        </el-breadcrumb-item>
        <el-breadcrumb-item>新闻资讯</el-breadcrumb-item>
      </el-breadcrumb>
    </div>
    <news-list :news="news" />
  </div>
</template>
<script>
import Api from '~/api'
export default {
  name: 'News',
  async asyncData ({ store }) {
    store.commit('setMenuState', 'news')
    const result = await Api.getNewsList()
    return { news: result.data.items }
  },
  head: {
    title: '英联智融|新闻资讯'
  }
}
</script>
<style lang="scss" scoped>
.breadcrumb-nav-wrapper {
  //width: 1200px;
  //margin: 0 auto;
}
</style>
